package com.atguigu.yygh.hosp.controller;

import com.atguigu.yygh.common.result.Result;
import com.atguigu.yygh.hosp.service.HospitalService;
import com.atguigu.yygh.vo.hosp.HospitalQueryVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author study
 * @version 1.0
 * @date 2021/5/6 15:53
 */
@Api(tags = "医院设置管理")
@RestController
@RequestMapping("/admin/hosp/hospital")
public class HospitalController {
    @Autowired
    private HospitalService hospitalService;

    //
    @ApiOperation(value = "医院列表")
    @GetMapping("list/{page}/{limit}")
    public Result findAllHospital(
            @PathVariable Integer page,
            @PathVariable Integer limit,
            HospitalQueryVo vo) {
        Page pageModel = hospitalService.selectHospPage(page, limit, vo);
        return Result.ok();
    }


}
